<?php
/**
 * Copyright (c) 2022-2222   All rights reserved.
 *
 * 创建时间：2022-10-10 13:38
 *
 * 项目：levs  -  $  - AdminRegisterUserController.php
 *
 * 作者：liwei
 */

//!defined('INLEV') && exit('Access Denied LEV');


namespace modules\levcc\controllers;

use Lev;
use modules\levcc\controllers\_gen\BaseAdminRegcUser;
use modules\levs\modules\register\table\register_user\registerUserModelHelper;

class AdminRegcUserController extends BaseAdminRegcUser
{

    //public static $addurl = false;

    public static function actionIndex()
    {
        $_GET['iden'] = 'levcc';

//        if ($useArr = registerUserModelHelper::findAll(['iden'=>'levcc', 'usestatus'=>0])) {
//            foreach ($useArr as $v) {
//                //notesAuthorsModelHelper::staticInfoBy($v['uid'], $v['nick']);
//                registerUserModelHelper::update(['usestatus'=>1], ['id'=>$v['id']]);
//            }
//        }

        return parent::actionIndex(); // TODO: Change the autogenerated stub
    }

    public static function showColumns()
    {
        $arr = parent::showColumns(); // TODO: Change the autogenerated stub
        unset($arr['iden']);
        return $arr;
    }
}